export default {
  labelWidth: '94px',
  gap: '12px',
  groupTheme: 'collapse',
  groups: [
    {
      title: '组件配置',
      columnsCount: 2,
      items: [
        {
          type: 'input',
          label: '标识',
          prop: 'componentId',
          readonly: true
        },
        {
          type: 'input',
          label: '名称',
          prop: 'name',
          rules: [{ required: true, message: '请输入控件名称', trigger: 'blur' }]
        },
        {
          type: 'input',
          label: '文本标签',
          prop: 'label'
        },
        {
          type: 'input',
          label: '文本内容',
          prop: 'contentExpression',
          rules: [{ required: true, message: '请输入内容表达式', trigger: 'blur' }]
        },
        {
          type: 'select',
          label: '对齐方式',
          prop: 'textAlign',
          config: {
            optionsValueKey: 'value',
            optionsLabelKey: 'label',
            returnObject: false,
            options: [{ label: '左对齐', value: 'left' }, { label: '居中对齐', value: 'center' }, { label: '右对齐', value: 'right' }]
          }
        },
        {
          type: 'input',
          label: '字体大小',
          prop: 'fontSize',
          rules: [{ required: true, message: '请输入控件字体大小', trigger: 'blur' }]
        },
        {
          type: 'color',
          label: '字体颜色',
          config: {
            position: 'right'
          },
          prop: 'color',
          rules: [{ required: true, message: '请输入控件颜色', trigger: 'blur' }]
        },
        {
          type: 'commonConfigEditor',
          config: {
            marginLeft: -80,
            lineNumbers: 'on',
            title: '是否存在',
            position: 'right'
          },
          label: '是否存在',
          prop: 'isExistExp'
        }
      ]

    }
  ]
}
